package com.pi.pro.xcmg.am.was.edi.infor.dto.req;

import com.pi.pro.xcmg.am.common.XcmgAmConstants;
import com.pi.pro.xcmg.am.was.edi.infor.common.InforWasXcmgExchangeConstants;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 *  库存查询
 */
@Setter
@Getter
public class StorageQueryData implements Serializable {

    //接口代码	processCode	string	Y	固定传 P_WCS2WMS_INVENTORY_QUERY
    private String processCode = InforWasXcmgExchangeConstants.FUNC_CODE_INVENTORY_QUERY;

    //项目号		string	Y	固定传 XCMG
    private String projectCode = XcmgAmConstants.CUSTOMER_CODE_XCMG_AM;

    //是否异步	asynchronous	string	Y	固定传 false
    private Boolean asynchronous = InforWasXcmgExchangeConstants.FLAG_NO;

    //object	data	Object	Y	用于封装业务参数的对象
    private StorageQueryObjectDto data=new StorageQueryObjectDto();

    public String toString() {
        StringBuffer buf = new StringBuffer();
        buf.append("{");
        //
        buf.append("processCode:");
        if (this.processCode != null) {
            buf.append(this.processCode);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("projectCode:");
        if (this.projectCode != null) {
            buf.append(this.projectCode);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("asynchronous:");
        if (this.asynchronous != null) {
            buf.append(this.asynchronous);
        } else {
            buf.append("");
        }
        buf.append(",");

        //
        buf.append("data:");
        if (this.data != null) {
            buf.append(this.data);
        } else {
            buf.append("");
        }
        buf.append("");
        buf.append("}");
        return buf.toString();
    }
}
